package nc.ui.so.m32.billui.handler;

import nc.ui.pub.bill.BillCardPanel;
import nc.ui.pubapp.uif2app.event.IAppEventHandler;
import nc.ui.pubapp.uif2app.event.card.CardBodyAfterEditEvent;
import nc.ui.so.m32.billui.util.CardPanelUtil;
import nc.ui.so.pub.keyvalue.CardKeyValue;
import nc.vo.so.pub.keyvalue.IKeyValue;

public class SaleInvoiceCardBodyExtAfterHandler implements IAppEventHandler<CardBodyAfterEditEvent>{

	@Override
	public void handleAppEvent(CardBodyAfterEditEvent event) {
		BillCardPanel cardPanel = event.getBillCardPanel();
		IKeyValue keyValue = new CardKeyValue(cardPanel);
		if("vbdef10".equals(event.getKey())) {
			String value = (String) keyValue.getBodyValue(event.getRow(), "vbdef13");
			CardPanelUtil.execCalculate_kk(cardPanel, new int[] { event.getRow()}, "vbdef13", new Object[] {value});
		}
	}

}
